package com.mrd.gtimpframe.service.impl;


import com.mrd.gtimpframe.entity.DeclaRelastionship;
import com.mrd.gtimpframe.repository.DeclaRelastionshipMapper;
import com.mrd.gtimpframe.service.DeclaRelastionshipService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeclaRelastionshipServiceImpl implements DeclaRelastionshipService {
    @Autowired
    private DeclaRelastionshipMapper declaRelastionshipMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return declaRelastionshipMapper.deleteByPrimaryKey(id);
    }

    /**
     * id自动生成
     */
    @Override
    public int insert(DeclaRelastionship record) {
        return declaRelastionshipMapper.insert(record);
    }

    /**
     * id自动生成
     */
    @Override
    public int insertSelective(DeclaRelastionship record) {
        return declaRelastionshipMapper.insertSelective(record);
    }

    @Override
    public DeclaRelastionship selectByPrimaryKey(String id) {
        return declaRelastionshipMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DeclaRelastionship record) {
        return declaRelastionshipMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DeclaRelastionship record) {
        return declaRelastionshipMapper.updateByPrimaryKey(record);
    }

    @Override
    public DeclaRelastionship selectByDeclaId(String declaId) {
        return declaRelastionshipMapper.selectByDeclaId(declaId);
    }
}